//自习任务有关的接口放这儿
import request from '../axios'

//获取自习任务目标列表(一定先调这个接口！！！)
export function selectAllTarget(id) {
    return request.get("/target/selectAllTarget?userId="+id)
}

//新增自习任务目标
export function addTarget(data) {
    return request.post("/target/addTarget",data)
}

//删除自习任务目标
export function deleteTarget(id) {
    return request.delete("/target/deleteTarget?targetId="+id)
}

//修改自习任务目标
export function updateTarget(data) {
    return request.put("/target/updateTarget",data)
}